package com.iwunu.gateway.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.iwunu.gateway.entity.InspectRecords;

import io.lettuce.core.dynamic.annotation.Param;

/**
 * @author kinfeng
 * @date 2021/3/9 10:00 AM
 * @desc
 */
@Repository
public interface InspectRecordsRepository extends JpaRepository<InspectRecords, Long> , JpaSpecificationExecutor<InspectRecords> {
    @Query(value="select i from InspectRecords i where i.deviceId=:deviceId  ")
    List<InspectRecords>  selectInspectRecords(@Param("deviceId") String deviceId);
}
